<%@ taglib uri="/tld/extremecomponents" prefix="ec" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

	<script src = "../js/jquery-1.12.1.js" type = "text/javascript"></script>
	<script src = "../js/common.js" type = "text/javascript"></script>
	
	<link href="<%=request.getContextPath() %>/css/extremecomponents.css" rel="stylesheet" type="text/css" />
	<link href="<%=request.getContextPath() %>/css/global.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/H-ui.min.css" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/H-ui.admin.css" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/iconfont.css" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/skin.css" id="skin" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/style.css" />
	
<title>考试整点分析</title>
</head>
<script>

$(function() {
    //查询
    $("#btnsearch").click(
        function() {
           formPost(window.SearchState, '','paper?ActionType=paper_EmphasisSelect', this);
       	
            });
    });
    
//涉及某章节题目单
function chapter(e){
	var mount=$(e).text();
	if(mount==null || mount=="" || mount=='' ){
		alert("章节异常");
	}else{
		var chapter = $(e).parent().find(".chapter").text(); 
        $.ajax({
            type : "post",
            dataType:"text",
            url : "paper?ActionType=paper_EmphasisChapter",
            data : {"CHAPTER":chapter},
            success : function(message) {
                	confirm("涉及的题目有：\n"+message); 
                	//在页面上弹出确认对话框
            }
        });
	}
}
    
</script>
<body>
<div id="current">当前位置：试卷分析 &gt; 考试重点分析</div>
<form name="SearchState" method="post">
  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="search_table">
    <tr class="search_title_tr">
      <td colspan="4" class="search_title_L"><img src="../images/search_titleleft.jpg" width="84" height="30" align="top" /></td>
      <td width="25%" class="search_title_R"><img src="../images/search-titleright.jpg" width="8" height="30" align="top" /></td>
    </tr>
<tr>
      
      <td width="12%" class="search_td1">题型：</td>
      <td width="26%" class="search_td2">
        <select name = "ITEM_TYPE" id = "ITEM_TYPE">
        	<option value = "">选择题型</option>
        	<option value = "0">主观题</option>
        	<option value = "1" >客观题</option>
        </select>
      </td>
      <td width="12%" class="search_td1">涉及章节：</td>
      <td width="26%" class="search_td2">
        <select name = "TEST_CHAPT" id = "TEST_CHAPT">
            <option value = "">选择章节</option>
        	<option value = "第一章">第一章</option>
        	<option value = "第二章" >第二章</option>
        	<option value = "第三章" >第三章</option>
        	<option value = "第四章" >第四章</option>
        	<option value = "第五章" >第五章</option>
			<option value = "第六章" >第六章</option>
        	<option value = "第七章" >第七章</option>
        </select>
      </td>
      <td class="search_td2">
      <input id="btnsearch" name="btnsearch" type="button" class="btn_2" value="查询" /></td>
    </tr>
  </table>
  </form>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td class="search_shadow"></td>
    </tr>
    <tr>
        <td class="main_blank"></td>
    </tr>
</table>
<!--数据列表-START-->
    <div class="mt-20">
		<table class="table table-border table-bordered table-bg table-hover table-sort">
    <thead>
				<tr class="text-c">
					<!-- <th width="25"><input type="checkbox" name="" value=""></th> -->
					<th width="105">序号</th>
					<th width="105">科目</th>
					<th width="105">章节</th>
					<th width="105">涉及题目</th>
					<th width="105">覆盖题型</th>
					<th width="105">比重大小</th>
				</tr>
			</thead>
			<tbody>
					 <c:forEach items="${PAPERINFO}"  var="paperList">
					 <tr class="text-c">
	                               <td class="item_id">${paperList.item_id}</td>
	                               <td class="course_name">${paperList.course_name}</td>
	                                 <td class="chapter"><span  onClick="chapter(this)">${paperList.chapter}</span></td>
	                               <td class="item">${paperList.item}</td>
	                               <td class="item_type">${paperList.item_type}</td>
	                                <td class="item_rate">${paperList.item_rate}</td>
	                              
	                   </tr>
	                  </c:forEach>
			</tbody>
<!--<ec:table items="PAPERINFO" var="row"
    action="test?ActionType=test_ViewInit"
    view="html" 
    autoIncludeParameters="false"
     >
    
     <ec:exportXls fileName="userList.xls" />
    <ec:row>
    	<ec:column style="text-align:center;" width="7%" property="rowcount" cell="rowCount" title="序号" sortable="false"/>
        <ec:column property="course_name" style="text-align:center;" title="科目"/>
        <ec:column property="chapter" style="text-align:center;" title="章节" />
        <ec:column property="item_type" style="text-align:center;" title="覆盖题型" />
         <ec:column property="item_rate" style="text-align:center;" title="比重大小" >
        
        </ec:column>
    </ec:row>
</ec:table>-->

</table>
</div>
<div id="container" class="container" style="display:none;height:250px;margin-left:auto;margin-right:auto;margin-top:10px;"></div>
</body>
</html>